package com.Threecharacters.Poly_.Polyparameter.Case2;

public class Employee {

    private String name;
    private double salary;

    public double getAnnul(){
        return salary*12;
    }

    //构造器进行个性化处理
    public Employee(String name,double salary){
        this.name=name;
        this.salary=salary;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }
}
